package com.wangyang.mapper;

import com.wangyang.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int addUser(@Param("username") String username, @Param("password") String password);
    User getUserByUsername(@Param("username") String username);
    User getUserById(@Param("id") Integer id);
    int updateUser(@Param("user") User user);

    int updateUserPic(@Param("id") Integer id, @Param("userPic") String userPic);

    int updateUserPassword(@Param("id") Integer id, @Param("password") String password);

}
